//
//

#import <Foundation/Foundation.h>

@interface NSObject (XBKit)


/**
 *  获取view的所在父ViewController
 *
 *  @param viewObj view 对象
 *
 *  @return UIViewController
 */
- (UIViewController *)viewControllerWithviewObj:(UIView *)viewObj;


    
/**
 获取当前最顶层控制器

 @return UIViewController
 */
- (UIViewController *)viewTopViewController;


@end
